package com.sun.umbrella.domain.enums;


import com.sun.core.enums.KeyedNamed;

/**
 * @description 资源类型枚举类
 * @author: Jay
 * @date: 2018-04-09 16:30
 * @version: v1.0
 */
public enum ResTypeEnum implements KeyedNamed<Integer, String> {
    //资源类型{1:模块,2:菜单,3:链接,4:按钮}
    RESTYPE_MODULE(1, "模块"),
    RESTYPE_MENU(2, "菜单"),
    RESTYPE_LINK(3, "链接"),
    RESTYPE_BUTTON(4, "按钮");

    private int key;

    private String name;

    ResTypeEnum(Integer key, String name) {
        this.key = key;
        this.name = name;
    }

    @Override
    public Integer getKey() {
        return this.key;
    }

    @Override
    public String getName() {
        return this.name;
    }

}
